package com.nd.android.u.filestoragesystem.business.com;

import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.message.BasicHeader;

import android.text.TextUtils;

import com.common.android.utils.httpRequest.ISetHeadAgent;
import com.product.android.business.config.Configuration;
/**
 * 文件系统http请求header
 * 
 * <br>Created 2014-6-12 上午9:59:00
 * @version  
 * @author   huangszh		
 *
 * @see
 */
public class FileStorageRequestHeader implements ISetHeadAgent{

    @Override
    public void setHttpHeader(HttpRequestBase request) {
        // 云id
        if(!TextUtils.isEmpty(Configuration.CLOUNDID)){
            request.addHeader(new BasicHeader("CLOUDID", Configuration.CLOUNDID));
        }
        
        // appid
        request.addHeader(new BasicHeader("APPID",  String.valueOf(Configuration.OAP_APPID)));
        
    }

}
